package com.ssyx.order.feign;

import com.ssyx.vo.product.SkuStockLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * ClassName:ProductFeignClient
 * Description:
 *
 * @Author kay
 * @Create 2024/5/23 10:32
 * @Version 1.0
 */
@FeignClient(value = "service-product")
public interface ProductFeignClient {

    //根据用户提交的相关购物车商品信息,判断是否锁定库存
    @PostMapping("/api/product/inner/checkAndLock/{orderNo}")
    Boolean checkAndLock(@RequestBody List<SkuStockLockVo> skuStockLockVoList,
                                @PathVariable String orderNo);
}
